package com.mfangsoft.zhuangjialong.integration.gift.mapper;

import java.util.List;
import java.util.Map;

import com.mfangsoft.zhuangjialong.common.model.Page;
import com.mfangsoft.zhuangjialong.common.utils.stereotype.WriterRepository;
import com.mfangsoft.zhuangjialong.integration.gift.model.BaseGift;

@WriterRepository
public interface BaseGiftMapper {
   
    /**
     * 插入数据  
     *
     * @MLTH_generated
     */

	void addGift(BaseGift baseGift);




  
    
    /**
     * 礼品列表
     * @param baseGift 
     *
     * @MLTH_generated
     */
	List<BaseGift> selectGift(BaseGift baseGift);
	 /**
     * 礼品查询  
     *
     * @MLTH_generated
     */
	BaseGift selectGiftOne(int id);
	 /**
     * 礼品编辑
     *
     * @MLTH_generated
     */
	void updateGiftOne(BaseGift baseGift);

	 /**
     * 活动礼品
	 * @param page 
     *
     * @MLTH_generated
     */

	List<Map<String, Object>> selectGiftActivityPage(Page<Map<String, Object>> page);

	Integer selectGiftActivityTotal();






	List<Map<String, Object>> selectGiftAll();

	void updateOrderGift(Map<String,Object> map);
	
	void updateOrderGiving(Map<String,Object> map);





}